<?php
include_once "./utils/conn.php";

//获取学生id
$stu_no=$_GET["stu_no"];

//编写sql语句
$sql="delete from student where stu_no='".$stu_no."'";      

//执行sql语句
$result=mysqli_query($conn,$sql);

if($result){
    echo json_encode(["code"=>1,"msg"=>"删除成功"],JSON_UNESCAPED_UNICODE);
}else{
    echo json_encode(["code"=>0,"msg"=>"删除失败"],JSON_UNESCAPED_UNICODE);
}

